package com.woniuxy.main.handler;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.woniuxy.main.pojo.Gym_image;
import com.woniuxy.main.service.Gym_imageService;

import lombok.Data;

@Controller
@RequestMapping("/gym_image")
@Data
public class Gym_imageHandler {
	@Resource
	private Gym_imageService gym_imageService;
	
	@RequestMapping("/findImagesByGid")
	@ResponseBody
	public List<Gym_image> findImagesByGid(int gid) {
		return gym_imageService.findImagesByGid(gid);
		
	}
}
